#include <iostream>
#include <fstream>
#include <string>
using namespace std;
 
int main(int argc, char* argv[])
{
    ofstream t_file;
    t_file.open("1bat_log.txt");
    while( !cin.eof() )
    {
        string t_line;
        getline(cin, t_line);
        t_line +='\n';
        t_file << t_line;
        cout   << t_line;
    }
    t_file.close();
    return 0;
}